//app.js
var mta = require('./zofui_sales/resource/js/mta_analysis')
App({
	onLaunch: function (e) {
		wx.hideTabBar();
		var self = this;
		self.globalData.scene = e.scene;
		/**mta 数据统计 */
		mta.App.init({
			"appID":"500733274",
			"autoReport": true,
			"statParam": true,
			"ignoreParams": [],
	 }); 
		wx.getSystemInfo({
			success: function (res) {
				self.globalData.sysInfo = res;
				if (res.model.search('iphonrx') != -1 || res.model.search('iPhone X') != -1 || res.model.search('iPhone 11') != -1) {
					self.globalData.isIPX = true;
				} else {
					self.globalData.isIPX = false;
				}
			}
		})
	},
	onShow: function () {
		wx.hideTabBar();
	},
	onHide: function () {},
	subform: function () {},
	onError: function (msg) {},
	util: require('we7/resource/js/util.js'),
	com: require('zofui_sales/resource/js/com.js'),
	globalData: {
		user: null,
		card: null,
		menu: null,
		formarr: [],
		vesion: '8.9.2',
		Time: Date.parse(new Date()),
		shopfooter: {},
		shopnav: 0,
		shopunav: 0,
		shopid: 0,
		scene: '',
		videoNumber: null,
	},
	siteInfo: require('siteinfo.js')
});